package com.itany.book.conf;


import org.jasig.cas.client.authentication.UrlPatternMatcherStrategy;

import java.util.regex.Pattern;

public class SimplerUrlPatterMatcherStrategy implements UrlPatternMatcherStrategy {

    private Pattern pattern;
    @Override
    public boolean matches(String url) {
        // 做处理！
        return this.pattern.matcher(url).find();
    }

    @Override
    public void setPattern(String pattern) {
        this.pattern = Pattern.compile(pattern);
    }
}
